<template>
  <h1>Hello App!</h1>
  <p>
    <el-button :icon="Delete">Default</el-button>
    <!-- <el-button type="danger" :icon="Delete" circle /> -->
    <router-link to="/">Go to Home</router-link> |
    <router-link to="/about">Go to About</router-link> |
    <router-link :to="{ name: 'user', params: { id: 12 } }">Go to 12</router-link> |
    <router-link :to="{ name: 'user', params: { id: 1234 } }">Go to 1234</router-link> |
  </p>
  <router-view></router-view>
  <router-view name="LeftSidebar"></router-view>
  <hr>

</template>

<script>
import { Delete } from '@element-plus/icons-vue'
import datapicker from '@/composables/datapicker.js'

export default {
  name: "App",
  components: {},
  setup() {
    return {
      ...datapicker()
    }
  },
  data() {
    return {
      Delete,
    }
  },
  mounted() {
    this.$router.push({ name: 'about' })
  },

};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
